package com.guodi.model.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.InputStream;
import java.io.Serializable;

/**
 * @描述: 市县级别系统, 上传成果请求DTO
 * @作者: 余家鑫
 * @日期: 2021/12/7 上午11:21
 */
@Data
public class AvtReviewTaskUploadReqDTO implements Serializable {
    private static final long serialVersionUID = 8919976104572495519L;


    @NotBlank(message = "填报单位区划编码为空")
    @ApiModelProperty(value = "填报单位区划编码", required = true)
    private String divisionCode;

    @NotBlank(message = "年份为空")
    @ApiModelProperty(value = "年份", required = true)
    private String year;

    @NotNull(message = "成果zip文件为空")
    @ApiModelProperty(value = "成果zip文件", required = true)
    private InputStream zipFileInputStream;

    @ApiModelProperty(value = "如果zip中, 有些指标已经存在于数据库表中, 是否覆盖, 为空的时候校验是否需要覆盖, 如果要覆盖则会报错")
    private Boolean coverIdt;

}
